﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HZ.Supervise.Model.Query
{
    [Serializable]
    public class UnDistributeCompanyQuery : IQuery
    {
     
        /// <summary>
        /// 排序字段【格式如：UserID ASC,UserName DESC, IsAdmin ASC】
        /// </summary>
        public string SortFields { get; set; }

        /// <summary>
        /// 自定义查询字段[格式: UserID = '1234' AND Name = 'Zeus2' AND ID NOT (SELECT ID FROM XX)]
        /// </summary>
        public string Append { get; set; }

        /// <summary>
        /// 采购单明细ID
        /// </summary>
        public string OrderDetailID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单类别
        /// </summary>
        public string StockType
        {
            get;
            set;
        }

        /// <summary>
        /// 当前流程
        /// </summary>
        public string FlowName
        {
            get;
            set;
        }

        /// <summary>
        /// 流程ID
        /// </summary>
        public string FlowID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单ID
        /// </summary>
        public string OrderID
        {
            get;
            set;
        }

        /// <summary>
        /// 医院ID
        /// </summary>
        public string HospitalID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单名
        /// </summary>
        public string OrderName
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单总金额
        /// </summary>
        public decimal? TotalAmount
        {
            get;
            set;
        }
        /// <summary>
        /// 送货地址
        /// </summary>
        public string DistrbuAddress
        {
            get;
            set;
        }
        /// <summary>
        /// 采购单总金额（大于）
        /// </summary>
        public decimal? TotalAmountFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单总金额（小于）
        /// </summary>
        public decimal? TotalAmountTo
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单起始时间
        /// </summary>
        public System.DateTime? StartTime
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单起始时间（早于）
        /// </summary>
        public System.DateTime? StartTimeFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单起始时间（晚于）
        /// </summary>
        public System.DateTime? StartTimeTo
        {
            get;
            set;
        }


        /// <summary>
        /// 采购单结束时间
        /// </summary>
        public System.DateTime? PlanEndTime
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单结束时间（早于）
        /// </summary>
        public System.DateTime? PlanEndTimeFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 采购单结束时间（晚于）
        /// </summary>
        public System.DateTime? PlanEndTimeTo
        {
            get;
            set;
        }

        /// <summary>
        /// 建单人
        /// </summary>
        public string PlanPerson
        {
            get;
            set;
        }

        /// <summary>
        /// 建立时间
        /// </summary>
        public System.DateTime? PlanTime
        {
            get;
            set;
        }

        /// <summary>
        /// 建立时间（早于）
        /// </summary>
        public System.DateTime? PlanTimeFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 建立时间（晚于）
        /// </summary>
        public System.DateTime? PlanTimeTo
        {
            get;
            set;
        }

        /// 医院名
        /// </summary>
        public string HospitalName
        {
            get;
            set;
        }

        /// <summary>
        /// 地区ID
        /// </summary>
        public string AreaID
        {
            get;
            set;
        }

        public string AreaName
        {
            get;
            set;
        }

        /// <summary>
        /// 商品ID
        /// </summary>
        public string GoodsID
        {
            get;
            set;
        }

        /// <summary>
        /// 产品名
        /// </summary>
        public string ProductName
        {
            get;
            set;
        }

        /// <summary>
        /// 剂型
        /// </summary>
        public string MedicineModelName
        {
            get;
            set;
        }

        /// <summary>
        /// 规格
        /// </summary>
        public string Outlookc
        {
            get;
            set;
        }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit
        {
            get;
            set;
        }

        /// <summary>
        /// 分类
        /// </summary>
        public string SortName
        {
            get;
            set;
        }

        /// <summary>
        /// 生产企业
        /// </summary>
        public string CompanyName_SC
        {
            get;
            set;
        }

        /// <summary>
        /// 投标企业
        /// </summary>
        public string CompanyName_TB
        {
            get;
            set;
        }

        /// <summary>
        /// 商品名 
        /// </summary>
        public string GoodsName
        {
            get;
            set;
        }

        /// <summary>
        /// 转换系数
        /// </summary>
        public int? Factor
        {
            get;
            set;
        }

        /// <summary>
        /// 转换系数（大于）
        /// </summary>
        public int? FactorFrom
        {
            get;
            set;
        }


        /// <summary>
        /// 转换系数（小于）
        /// </summary>
        public int? FactorTo
        {
            get;
            set;
        }


        /// <summary>
        /// 包装
        /// </summary>
        public string Pack
        {
            get;
            set;
        }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string ProductID
        {
            get;
            set;
        }

        /// <summary>
        /// 剂型编号
        /// </summary>
        public string MedicineModelID
        {
            get;
            set;
        }

        /// <summary>
        /// 目录编号
        /// </summary>
        public string SortID
        {
            get;
            set;
        }


        /// <summary>
        /// 生产企业编号
        /// </summary>
        public string CompanyID_SC
        {
            get;
            set;
        }

        /// <summary>
        /// 投标企业编号
        /// </summary>
        public string CompanyID_TB
        {
            get;
            set;
        }
        /// <summary>
        /// 父级分类号
        /// </summary>
        public string ParentSortID
        {
            get;
            set;
        }

        /// <summary>
        /// 采购目录编号
        /// </summary>
        public string ProcureCatalogID
        {
            get;
            set;
        }
        /// <summary>
        /// 采购项目编号
        /// </summary>
        public string ProjectID
        {
            get;
            set;
        }

        /// <summary>
        /// 中标价格
        /// </summary>
        public decimal? ProcurePrice
        {
            get;
            set;
        }

        /// <summary>
        /// 中标价格（大于）
        /// </summary>
        public decimal? ProcurePriceFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 中标价格（小于）
        /// </summary>
        public decimal? ProcurePriceTo
        {
            get;
            set;
        }

        /// <summary>
        /// 是否启用（0否;1是）
        /// </summary>
        public bool? IsUsing
        {
            get;
            set;
        }
        /// <summary>
        /// 状态（是否流程中）（0否;1是）
        /// </summary>
        public bool? IsFlowing
        {
            get;
            set;
        }
        /// <summary>
        /// 目录来源:0正常添加;1临时采购
        /// </summary>
        public int? SortSource
        {
            get;
            set;
        }

        /// <summary>
        /// 采购项目名称
        /// </summary>
        public string ProjectName
        {
            get;
            set;
        }

        /// <summary>
        /// 配送企业编号
        /// </summary>
        public string CompanyID_PS
        {
            get;
            set;
        }

        /// <summary>
        /// 配送企业名称
        /// </summary>
        public string CompanyName_PS
        {
            get;
            set;
        }


        /// <summary>
        /// 当前执行节点:在开始制定采购单时，根据选择的流程，将流程首节点写入;在流程的执行过程中,当当前节点对应的操作执行完毕,则将下一个节点写入(或者返回上一个节点)
        /// </summary>
        public string CurrentNode
        {
            get;
            set;
        }

        /// <summary>
        /// 采购数量
        /// </summary>
        public int? PurchaseCount
        {
            get;
            set;
        }

        /// <summary>
        /// 采购价格
        /// </summary>
        public decimal? Price
        {
            get;
            set;
        }


        /// <summary>
        /// 采购价格（大于）
        /// </summary>
        public decimal? PriceFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 采购价格（小于）
        /// </summary>
        public decimal? PriceTo
        {
            get;
            set;
        }


        /// <summary>
        /// 采购金额
        /// </summary>
        public decimal? Amount
        {
            get;
            set;
        }

        /// <summary>
        /// 采购金额（大于）
        /// </summary>
        public decimal? AmountFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 采购金额（小于）
        /// </summary>
        public decimal? AmountTo
        {
            get;
            set;
        }


        /// <summary>
        /// 执行时间
        /// </summary>
        public System.DateTime? ExecuteTime
        {
            get;
            set;
        }

        /// <summary>
        /// 执行时间（早于）
        /// </summary>
        public System.DateTime? ExecuteTimeFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 执行时间（晚于）
        /// </summary>
        public System.DateTime? ExecuteTimeTo
        {
            get;
            set;
        }

        /// <summary>
        /// 状态标识:0未确认;1已提交;2已确认（已确认的采购单，就不可以再修改了）
        /// </summary>
        public int? OrderDetailState
        {
            get;
            set;
        }

        /// <summary>
        /// 已配送数量
        /// </summary>
        public int? DistributeCount
        {
            get;
            set;
        }

        /// <summary>
        /// 已配送数量（大于）
        /// </summary>
        public int? DistributeCountFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 已配送数量（小于）
        /// </summary>
        public int? DistributeCountTo
        {
            get;
            set;
        }

        /// <summary>
        /// 已入库数量
        /// </summary>
        public int? WarehouseCount
        {
            get;
            set;
        }

        /// <summary>
        /// 已入库数量（大于）
        /// </summary>
        public int? WarehouseCountFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 已入库数量（小于）
        /// </summary>
        public int? WarehouseCountTo
        {
            get;
            set;
        }

        /// <summary>
        /// 已退货数量
        /// </summary>
        public int? ReturnCount
        {
            get;
            set;
        }

        /// <summary>
        /// 已退货数量（大于）
        /// </summary>
        public int? ReturnCountFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 已退货数量（小于）
        /// </summary>
        public int? ReturnCountTo
        {
            get;
            set;
        }

        /// <summary>
        /// 入库时间（到）
        /// </summary>
        public System.DateTime? WarehouseTimeTo
        {
            get;
            set;
        }

        /// <summary>
        /// 入库时间（从）
        /// </summary>
        public System.DateTime? WarehouseTimeFrom
        {
            get;
            set;
        }
        /// <summary>
        /// 通用名 拼音嘛
        /// </summary>
        public string PinyinCode { get; set; }
        /// <summary>
        /// 五笔码
        /// </summary>
        public string WBCode { get; set; }

        /// <summary>
        /// 订单审核状态：-1尚未提交0已提交卫生局待审核1卫生局审核通过2卫生局审核通过中心待审核3中心审核通过4中心审核未通过
        /// </summary>
        public int? CheckState
        {
            get;
            set;
        }
        /// <summary>
        /// 卫生局订单审核不通过原因
        /// </summary>
        public string BoHNoPassReason
        {
            get;
            set;
        }
        /// <summary>
        /// 中心订单审核不通过原因
        /// </summary>
        public string CenNoPassReason
        {
            get;
            set;
        }
        /// <summary>
        /// 卫生局订单审核时间
        /// </summary>
        public System.DateTime? BoHCheckTime
        {
            get;
            set;
        }
        /// <summary>
        /// 中心订单审核时间
        /// </summary>
        public System.DateTime? CenCheckTime
        {
            get;
            set;
        }
        /// <summary>
        /// 卫生局订单审核人
        /// </summary>
        public string BoHCheckPerson
        {
            get;
            set;
        }
        /// <summary>
        /// 中心订单审核人
        /// </summary>
        public string CenCheckPerson
        {
            get;
            set;
        }
        /// <summary>
        /// 
        /// </summary>
        public string CheckLog
        {
            get;
            set;
        }
        /// <summary>
        /// 订单审核标识:0手动1自动
        /// </summary>
        public int? CheckFlag
        {
            get;
            set;
        }

        /// <summary>
        /// 中心提交时间(大于)
        /// </summary>
        public System.DateTime? CenSubmiitTimeFrom
        {
            get;
            set;
        }

        /// <summary>
        /// 中心提交时间
        /// </summary>
        public System.DateTime? CenSubmiitTime
        {
            get;
            set;
        }
        /// <summary>
        /// 中心提交时间(小于)
        /// </summary>
        public System.DateTime? CenSubmiitTimeTo
        {
            get;
            set;
        }
        /// <summary>
        /// 中心提交人
        /// </summary>
        public string CenSubmiitPerson
        {
            get;
            set;
        }

        /// <summary>
        /// 入库单编号
        /// </summary>
        public string WarehouseID { get; set; }

        public int? SubmitViews { get; set; }
    }
}
